﻿namespace ThingsGateway.Application.Core;

/// <summary>
/// 后台服务提供，暂时没找到worker与api controllers的交互方法，以单例服务作为中转
/// </summary>
public class RootServices : ISingleton
{
    public IServiceProvider Services;
    /// <summary>
    /// 后台采集设备服务
    /// </summary>
    public DeviceCollectService DeviceCollectService { get; set; }
    /// <summary>
    /// 后台报警服务
    /// </summary>
    public AlarmHostService AlarmHostService { get; set; }
    /// <summary>
    /// 后台历史服务
    /// </summary>
    public HisHostService HisHostService { get; set; }
    /// <summary>
    /// 后台上传插件服务
    /// </summary>
    public UploadService UploadService { get; set; }
    /// <summary>
    /// 后台全部变量
    /// </summary>
    public AllDeviceData AllDeviceData { get; set; }
    public RootServices(IServiceProvider services)
    {
        Services = services;
    }
}

